package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Setter
@Getter
public class AnswerComment extends BaseDomain{

    public static final Integer UNREAD = 0; //未读
    public static final Integer READED = 1; //已读
    //评论者id
    private User user;
    //创建时间
    @JsonFormat(pattern = "y-M-d",timezone = "GMT+8")
    @DateTimeFormat(pattern = "y-M-d")
    private Date createTime;
    //评论内容
    private String content;
    //答案id
    private Answer answer;
    //状态
    private Integer state;
    //发布时间
    @JsonFormat(pattern = "y-M-d",timezone = "GMT+8")
    @DateTimeFormat(pattern = "y-M-d")
    private Date commendTime;

}